home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
wfc007.000
/
include
/
dumyfile.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-08
|
1KB
|
54 lines
#ifndef DUMMY_FILE_CLASS_HEADER
/*
** Author: Samuel R. Blackburn
** CI$: 76300,326
** Internet: sammy@sed.csc.com
**
** You can use it any way you like.
*/
#define DUMMY_FILE_CLASS_HEADER
class CDummyFile : public CFile
{
DECLARE_SERIAL( CDummyFile )
protected:
DWORD m_ErrorCode;
public:
CDummyFile();
/*
** Destructor should be virtual according to MSJ article in Sept 1992
** "Do More with Less Code:..."
*/
virtual ~CDummyFile();
/*
** Interception functions (would blow up if we let CFile get them)
*/
virtual void Abort( void );
virtual void Flush( void );
virtual DWORD GetError( void ) const;
virtual DWORD GetLength( void ) const;
virtual DWORD GetPosition( void ) const;
virtual BOOL GetStatus( CFileStatus& status );
virtual BOOL GetStatus( LPCTSTR name, CFileStatus& status );
virtual void LockRange( DWORD position, DWORD count );
virtual void Remove( LPCTSTR name );
virtual void Rename( LPCTSTR OldName, LPCTSTR NewName );
virtual LONG Seek( LONG offset, UINT from );
virtual void Serialize( CArchive& archive );
virtual void SetLength( DWORD length );
virtual void SetStatus( LPCTSTR name, const CFileStatus& status );
virtual void UnlockRange( DWORD position, DWORD count );
};
#endif // DUMMY_FILE_CLASS_HEADER